package com.ykq.sso.feign;

import com.ykq.pojo.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @program: education-parent
 * @description:
 * @author: 闫克起
 * @create: 2022-08-03 11:24
 **/
@FeignClient(value = "education-system")
public interface SystemFeign {

    @GetMapping("/api/system/user/findByName/{username}")
    public User findByName(@PathVariable String username);

    @GetMapping("/api/system/permission/findByUserId/{id}")
    public List<String> findByUserId(@PathVariable String id);
}
